package com.nbjtjc.safe.mapper.edu;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.nbjtjc.safe.model.edu.EduDailyExamineList;
import com.nbjtjc.util.MyMapper;
@Mapper
public interface EduDailyExamineListMapper extends MyMapper<EduDailyExamineList> {
	
	List<EduDailyExamineList> findByRecordId(@Param("recordId") int recordId);
	
	List<EduDailyExamineList> findDetailByRecordId(@Param("recordId") int recordId);
	
	List<EduDailyExamineList> search(@Param("edel") EduDailyExamineList eduDailyExamineList);

	List<EduDailyExamineList> searchDetail(@Param("edel") EduDailyExamineList eduDailyExamineList);
	
	@Update("update edu_daily_examine_list set cancel = 1 where record_id = #{recId}")
	int cancelByRecId(@Param("recId") int recId);

	@Delete("delete from edu_daily_examine_list where record_id = #{recId}")
	int deleteByRecId(@Param("recId") int recId);
}